package src.data.hbt;


 
public class HibernateUtil
{
	private  static HibernateProvider provider;
	
	
	public static void registerPersistent()
    {
        try
        {
        	provider=HibernateProvider.getInstance();
        	
 /*
        	
        	provider.registerPersistentClass(Cliente.class);
        	provider.registerPersistentClass(Comercial.class);
        	provider.registerPersistentClass(Particular.class);
        	
        	provider.registerPersistentClass(Cuenta.class);
        	provider.registerPersistentClass(CuentaCorriente.class);
        	provider.registerPersistentClass(CajaDeAhorro.class);
        	
        	provider.registerPersistentClass(Movimiento.class);
        	provider.registerPersistentClass(Deposito.class);
        	provider.registerPersistentClass(Extraccion.class);
        	
*/
        	
        	        	
        }
        catch (Throwable ex)
        {
            System.err.println("Initial SessionFactory creation failed. " + ex);
            throw new ExceptionInInitializerError(ex);
        }
    }
     
}
